<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <title>我的积分</title>
    <meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1,user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">

    <!--标准mui.css-->
    <link rel="stylesheet" href="__PUBLIC__/css/mui.min.css">
    <!--App自定义的css-->
    <link rel="stylesheet" type="text/css" href="__PUBLIC__/css/app.css" />
    <script type="text/javascript" src="__PUBLIC__/js/jquery-3.2.1.min.js"></script>
</head>

<body>
<header class="mui-bar mui-bar-nav">
    <a style="position:absolute;z-index: 2"  class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
    <a href="{:U('myMoney')}" style='position:absolute; z-index:3; width:40px; height:40px; left:0px; top:0px;background: blue;opacity:0'></a>
    <h1 class="mui-title">我的积分</h1>
    <a class="mui-r-span">使用规则</a>
</header>
<div class="mui-content">

    <div class="mui-jf">
        <p>{$jifen.ReturnData.MyPoint}</p>
        <p>我的积分</p>
    </div>
    <div class="mui-jfinfo">积分明细</div>
    <ul id="list" class="mui-table-view cl6">
        <foreach name="jifen.ReturnData.Rows" item="vo">
            <li class="mui-table-view-cell"><a class="fl">{$vo.OpDate}</a> <span class="fr clf6">+{$vo.Point}</span></li>
        </foreach>
    </ul>
    <!--弹出框-->

    <div class="mui-popup mui-popup-in" style="display: none;">
        <div class="mui-popup-inner">
            <div class="mui-popup-title">充值</div>
            <form class="mui-input-group">
                <div class="mui-input-row">
                    <label>金额</label>
                    <input class="mui-input-sz" type="text" placeholder="请输入充值金额">
                </div>
                <div class="mui-input-row mui-checkbox mui-radio">
                    <label class="texl"><img class="mui-media-object mui-pull-left" src="__public__/images/bizimg/wxzf.png"><em>微信支付</em></label>
                    <input name="radio1" type="radio" checked>
                </div>

                <div class="mui-input-row mui-checkbox mui-radio">
                    <label class="texl"><img class="mui-media-object mui-pull-left" src="__public__/images/bizimg/zfbzf.png"><em>支付宝支付</em></label>
                    <input name="radio1" type="radio" checked>
                </div>

            </form>
        </div>
        <div class="mui-popup-buttons">
            <span class="mui-popup-button cl2 br">取消</span>
            <span class="mui-popup-button ">确定充值</span></div>
    </div>
    <div class="mui-popup-backdrop mui-active" style="display: none;"></div>
</div>
<script src="__PUBLIC__/js/mui.min.js"></script>


</body>

</html>
<script>
    var page = 1, //分页码
        off_on = false, //分页开关(滚动加载方法 1 中用的)
        timers = null; //定时器(滚动加载方法 2 中用的)
    //还可以基window窗口（body）来添加滚动事件, (因为布局不同,所以在这里没效果，因为[上面是基于body中的某个元素来添加滚动事的])
    $(window).scroll(function() {
        //当时滚动条离底部60px时开始加载下一页的内容
        if (($(window).height() + $(window).scrollTop() + 120) >= $(document).height()) {
            clearTimeout(timers);
            timers = setTimeout(function() {
                page++;
                //alert(page)
                $.post("{:U('myJifenPage')}",{page:page},function(rels)
                {
                    //data[i].AddrID
                    if(rels.code == '0')
                    {
                        var html="";
                        var data=rels.data;
                        for(var i=0;i<data.length;i++){
                            html+='<li class="mui-table-view-cell"><a class="fl">'+data[i].OpDate+'</a> <span class="fr clf6">+'+data[i].Point+'</span></li>'
                        }
                        $('#list').append(html)
                    }
                })
            }, 300);
        }
    });
</script>